<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
    </head>
    <body>


        <button type="button" onclick="func1('alert')">普通按钮1</button>
        <button type="button" onclick="func2('100')">普通按钮2</button>
        <button type="button" onclick="func3()">普通按钮3</button>

        <script type="text/javascript">
            function func1(param){
                //带有"确定"按钮的弹窗
                alert("参数："+param);
            }

            function func2(param) {

               let result = window.prompt("提示信息", param);

               console.log(result);
            }

            function func3(){
                var result = window.confirm("是否确认删除?");

                if(result){
                    alert("删除成功!")
                }else{
                    window.alert("删除失败!")
                }
            }

        </script>

    </body>
</html>